package com.tuananh.radnom.model.netpoller;

import java.util.ArrayList;

import javax.xml.bind.annotation.XmlAccessorOrder;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlList;
import javax.xml.bind.annotation.XmlRootElement;

import com.tuananh.radnom.model.AbstractConfiguration;
import com.tuananh.radnom.model.DirectoryConfig;
import com.tuananh.radnom.model.NetElementConfiguration;

@XmlRootElement(name = "netpoller-conf")
public class NetPollerConfiguration extends AbstractConfiguration {
	public static String path = "../config/netpoller-conf.xml";
	{
		path = DirectoryConfig.configPaths.get(NetPollerConfiguration.class
				.getName());
		configPath = path;
	}
	ArrayList<NetPollerMap> netPollerEntries;
	ArrayList<Command> commands;

	@XmlElementWrapper(name="commands")
	@XmlElement(name="command")
	public ArrayList<Command> getCommands() {
		return commands;
	}

	public void setCommands(ArrayList<Command> commands) {
		this.commands = commands;
	}

	@XmlElement(name = "net-poller")
	public ArrayList<NetPollerMap> getNetPoller() {
		return netPollerEntries;
	}

	public void setNetPoller(ArrayList<NetPollerMap> netPollerEntries) {
		this.netPollerEntries = netPollerEntries;
	}

	@Override
	public AbstractConfiguration clone() {
		// TODO Auto-generated method stub
		return null;
	}
}
